#pragma once
#include "Singleton.h"
#include <list>

class CThreadsPool : public CSingleton<CThreadsPool>
{
public:
	friend class CSingleton<CThreadsPool>;

	void BeginThread(unsigned WINAPI ThreadFunc(void* arg), void* pArg);
	~CThreadsPool(void);

private:
	std::list<HANDLE> m_ThreadHandleList;

	CThreadsPool(void);
	
};

